<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>swiper插件</title>
		<link rel="stylesheet" href="https://unpkg.com/swiper/css/swiper.min.css">
		<style>
			*{
				margin: 0;
				padding: 0;
			}
			
			.swiper-container {
			    width: 600px;
			    height: 300px;
			}  
		</style>
	</head>
	<body>

		<div class="swiper-container">
			<div class="swiper-wrapper">
				<div class="swiper-slide">Slide 1</div>
				<div class="swiper-slide">Slide 2</div>
				<div class="swiper-slide">Slide 3</div>
			</div>
			<!-- 如果需要分页器 -->
			<div class="swiper-pagination"></div>
		</div>

		<script src="https://unpkg.com/swiper/js/swiper.min.js"> </script>
		<script type="text/javascript">
			var mySwiper = new Swiper('.swiper-container', {
				loop: true, // 循环模式选项

				// 如果需要分页器
				pagination: {
					el: '.swiper-pagination',
				},
			})
		</script>
	</body>
</html>
